package caiyinghao_boot.src.main.java.com.jiazhong.shixi.boot.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//这是一个控制类
@RestController
@RequestMapping("/first")//网址路径
public class FirstController {
    //  /first/a
    @RequestMapping("/a")
    public String a() {
        return "This is FirstController`a method!";
    }
}
